<nav class="navbar navbar-default navbar-static-top">
    <!-- <nav class="navbar navbar-inverse navbar-static-top"> -->
    <div class="navContent">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#blogmenu"
                aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">blogmenu</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/" title="进入首页">my blog</a>
        </div>
        <div id="blogmenu" class="navbar-collapse collapse">
            <ul class="nav navbar-nav">
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                        aria-expanded="false">
                        <i class="glyphicon glyphicon-th-large "></i> 博客管理
                        <span class="caret"></span>
                    </a>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="/writeblogs" class="dropdown-item">
                                <i class="glyphicon glyphicon-pencil"></i>写博客
                            </a>
                        </li>
                        <li><a href="/manageclassify" class="dropdown-item">
                                <i class="glyphicon glyphicon-file"></i>博客分类管理
                            </a>
                        </li>
                        <li>
                            <a href="/manageblogs" class="dropdown-item">
                                <i class="glyphicon glyphicon-edit"></i>博客文章管理
                            </a>
                        </li>

                    </ul>
                </li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                        aria-expanded="false">
                        <i class="glyphicon glyphicon-th-large "></i> 用户管理
                        <span class="caret"></span>
                    </a>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="/manageauthors"><i class="glyphicon glyphicon-th-list "></i> 作者列表</a>
                        </li>

                        <li>
                            <a href="/peopleleaveword"><i class="glyphicon glyphicon-repeat "></i>游客留言</a>
                        </li>

                    </ul>
                </li>
                <li>
                    <a href="https://blog.likepoems.com" class="dropdown-item">
                        <i class="glyphicon glyphicon-globe"></i>站点前台
                    </a>
                </li>

            </ul>

            <ul class="nav navbar-nav navbar-right">
                <li>
                    <a href="http://www.creditsailing.com/zuowensucai/911810.html" class="dropdown-item">
                        <i class="glyphicon glyphicon-cd"></i>
                        每日英语
                    </a>
                </li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                        aria-expanded="false">
                        <img src="<%= authorImg%>" />
                        <%= authorname=='admin' ?'管理员':authorname%>
                            <span class="caret"></span>
                    </a>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="/authorinfo"><i class="glyphicon glyphicon-user "></i> 个人信息</a>
                        </li>

                        <li>
                            <a href="/logout"><i class="glyphicon glyphicon-off "></i>注销登录</a>
                        </li>

                    </ul>
                </li>
            </ul>
        </div>
    </div>
</nav>